home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_06 / 1106040a < prev    next >
Text File  |  1993-04-10  |  419b  |  25 lines

  1. void convolve_wave(const long int sequence_len, 
  2.                    const double *f,
  3.                    const double *g, 
  4.                    double *y)
  5. {
  6.     auto unsigned long int x,
  7.                            n;
  8.     for (n = 0; n < sequence_len; n++)
  9.     {
  10.         y[n] = 0.0;
  11.         for (x = 0; x < n; x++)
  12.         {
  13.             y[n] += f[x] * g[n - x];
  14.         }
  15.     }
  16.     return;
  17. }
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.